package com.edu.tool.util.converters;


import org.springframework.core.convert.converter.Converter;

import java.util.Date;

public class Int2DateConverter implements Converter<Integer, Date> {
    public Int2DateConverter( ) {

    }

    @Override
    public Date convert(Integer source) {
        Long time = source.longValue() * 1000;
        return new Date(time);
    }

}
